package com.gin.danbooru.factory

import okhttp3.ResponseBody
import org.jsoup.Jsoup
import org.jsoup.nodes.Document
import retrofit2.Converter

/**
 * @author BX-Gin
 * @from 2024/2/27 10:13
 */
class DocumentConverter : Converter<ResponseBody, Document> {
    override fun convert(responseBody: ResponseBody): Document? {
        return Jsoup.parse(responseBody.string())
    }
}